package dycaps

// Message 消息结构
type Message struct {
	Tag      MessageTag `json:"tag"`
	Source   int        `json:"source"`
	Dest     int        `json:"dest"`
	Round    int        `json:"round"`
	Instance int        `json:"instance"`
	Payload  []byte     `json:"payload"`
}

// MessageTag 消息标签类型
type MessageTag string

const (
	ADKR_RBC       MessageTag = "ADKR_RBC"
	ADKR_RBC_ECHO  MessageTag = "ADKR_RBC_ECHO"
	ADKR_RBC_READY MessageTag = "ADKR_RBC_READY"
	ADKR_MVBA      MessageTag = "ADKR_MVBA"
	ADKG_COIN      MessageTag = "ADKG_COIN"
)

